c11dd5f2bc813238163aca45dc6ced185b0f650f,nosql/src/main/java/ch/rasc/nosql/neo4j/ImdbParser.java,ImdbParser,main,#String[]#,38
Before Change
.newEmbeddedDatabase("e:\\temp\\neo4j\\moviedb");
tx = graphDb.beginTx();
index = graphDb.index().forNodes("myIndex");
tx.success();
tx.close();
new ImdbParser().readImdbData(graphDb, index, "E:\\temp\\actors.list.gz");
graphDb.shutdown();
After Change
.newEmbeddedDatabase("e:\\temp\\neo4j\\moviedb");
try (Transaction tx = graphDb.beginTx()) {
index = graphDb.index().forNodes("myIndex");
tx.success();
}
new ImdbParser().readImdbData(graphDb, index, "E:\\temp\\actors.list.gz");
graphDb.shutdown();